package com.sdyc.ndmp.cls.model;

import java.util.List;

/**
 * 关键字规则
 */
public class KeyWordRuleEntity {
    /**
     * 包含类型
     * 包含全部 0
     * 任意包含 1
     * 不包含 2
     */
    private int contains=0;

    /**
     * 之前 -1
     * 全部 0
     * 之后 1
     */
    private int vector=0;

    /**
     * len 间距
     * 0~N
     * -1 为不限制间距
     */
    private int len=-1;

    /**
     * 关键词
     */
    private String[] words;

    /**
       搜索范围: CONTENT/TITLE/FULLTEXT/SOURCE
     */
    private String field;

    private List<KeyWordRuleEntity> sons;

    public int getContains() {
        return contains;
    }

    public void setContains(int contains) {
        this.contains = contains;
    }

    public int getVector() {
        return vector;
    }

    public void setVector(int vector) {
        this.vector = vector;
    }

    public int getLen() {
        return len;
    }

    public void setLen(int len) {
        this.len = len;
    }

    public String[] getWords() {
        return words;
    }

    public void setWords(String[] words) {
        this.words = words;
    }

    public List<KeyWordRuleEntity> getSons() {
        return sons;
    }

    public void setSons(List<KeyWordRuleEntity> sons) {
        this.sons = sons;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }
}
